<include file="public:header" />
<!--菜单添加-->
<ul id="mytab" class="nav nav-tabs" style="margin-top: 15px;">
	<li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</li>
	<li class="active"><a href="#con1" data-toggle="tab">单页编辑</a></li>
	<li><a href="#con2" data-toggle="tab">seo设置</a></li>
</ul>
<form class="form-horizontal" role="form" action="{:u('superadmin/article/page_edit')}" method="post">
<div id="tabContent" class="tab-content">

	<div class="tab-pane fade in active" id="con1">
		<div style="margin-top: 20px;">


				<div class="form-group">
					<label class="col-sm-1 control-label label-form">标题title:</label>
					<div class="col-sm-3 input-padding">
						<input type="text" class="form-control" value="{$info.title}" name="title" id="title"
							   placeholder="请输入标题title">
					</div>
				</div>

				<div class="form-group">
					<label class="col-sm-1 control-label label-form">内容:</label>
					<div class="col-sm-3 input-padding">
						<textarea class="form-control" id="content" name="content" placeholder="请输入内容">{$info.content}</textarea>
					</div>
				</div>

				<div class="form-group">
					<button id="save" class="btn btn-primary btn-position">保存</button>
				</div>
				<input type="hidden" name="cate_id" value="{$_GET['cate_id']}">

		</div>
	</div>
	<div class="tab-pane fade" id="con2" style="margin-top: 20px;">
		<div class="form-group">
			<label class="col-sm-1 control-label label-form">seoTitle:</label>
			<div class="col-sm-3 input-padding">
				<input type="text" class="form-control" value="{$info.seo_title}" name="seo_title" id="seo_title"
					   placeholder="请输入seo_title">
			</div>
		</div>

		<div class="form-group">
			<label class="col-sm-1 control-label label-form">seo关键字:</label>
			<div class="col-sm-3 input-padding">
				<input type="text" class="form-control" value="{$info.seo_keywords}" name="seo_keywords" id="seo_keywords"
					   placeholder="请输入seo_keywords">
			</div>
		</div>

		<div class="form-group">
			<label class="col-sm-1 control-label label-form">seo描述:</label>
			<div class="col-sm-3 input-padding">
				<textarea class="form-control" name="seo_description" placeholder="请输入seo_description" rows="3">{$info.seo_description}</textarea>
			</div>
		</div>
	</div>

</div>
</form>


<include file="public:footer" />
<script charset="utf-8" src="__STATIC__/editor/kindeditor-all-min.js"></script>
<script charset="utf-8" src="__STATIC__/editor/lang/zh-CN.js"></script>
<script>
	//初始化编辑器
	KindEditor.ready(function(K) {
		window.editor = K.create('#content',{
			width: '670px',
			height: '360px',
		});
	});

	$(document).ready(function(){
		$('#mytab a').click(function (e) {
			e.preventDefault()
			$(this).tab('show');
		})

		$('#save').click(function(){
			$('.form-horizontal').submit();
		});
	});
</script>
</body>
</html>
